Crate launchpadlib
source ·Expand description
§Launchpad API
This crate provides a Rust interface to the Launchpad API. It is generated from the Launchpad API WADL document.
§Usage
use url::Url;
#[cfg(feature = "api-v1_0")]
{
let client = launchpadlib::Client::anonymous("just+testing");
let service_root = launchpadlib::v1_0::service_root(&client).unwrap();
let people = service_root.people().unwrap();
let person = people.get_by_email(&client, "jelmer@jelmer.uk").unwrap();
let ssh_keys = person.sshkeys(&client).unwrap().map(|k| k.unwrap().keytext).collect::<Vec<_>>();
println!("SSH Keys: {:?}", ssh_keys);
}
Re-exports§
pub use client::Client;
Modules§
- Signing of requests for Launchpad.